﻿@model Gfw.Web.Models.SystemUser.NewUserModel
@{
    ViewBag.Title = "编辑帐户";
    Layout = "~/Areas/Admin/Views/Shared/_Content.cshtml";
}
<script src="~/Scripts/jquery-1.6.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

@using (Ajax.BeginForm("Edit", "SystemUser", null, Gfw.Web.Common.ViewHelper.AjaxPost))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>UsrSystemuser</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.IsLock)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsLock)
            @Html.ValidationMessageFor(model => model.IsLock)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LoginName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LoginName)
            @Html.ValidationMessageFor(model => model.LoginName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SecondPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SecondPassword)
            @Html.ValidationMessageFor(model => model.SecondPassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Tel)
            @Html.ValidationMessageFor(model => model.Tel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Qq)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Qq)
            @Html.ValidationMessageFor(model => model.Qq)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdCard)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IdCard)
            @Html.ValidationMessageFor(model => model.IdCard)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Ajax.ActionLink("返回", "Index", new { page = 1 }, Gfw.Web.Common.ViewHelper.AjaxGet)
</div>
